package com.tencent.wxcloudrun.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tencent.wxcloudrun.domain.TUserCardApplyImg;
import com.tencent.wxcloudrun.mapper.TUserCardApplyImgMapper;
import com.tencent.wxcloudrun.service.TUserCardApplyImgService;

/**
 * @author ziyin.zhao
 * @description 针对表【t_user_card_apply_img(用户卡片记录表)】的数据库操作Service实现
 * @createDate 2025-05-13 09:21:26
 */
@Service
public class TUserCardApplyImgServiceImpl extends ServiceImpl<TUserCardApplyImgMapper, TUserCardApplyImg>
    implements TUserCardApplyImgService {

    @Override
    public List<TUserCardApplyImg> getByCardApplyId(Long userCardApplyId) {
        LambdaQueryWrapper<TUserCardApplyImg> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TUserCardApplyImg::getUserCardApplyId, userCardApplyId);
        queryWrapper.eq(TUserCardApplyImg::getEnableFlag, 1);
        return this.list(queryWrapper);
    }
}
